package com.ucomm.talent;

import android.annotation.SuppressLint;
import android.os.Environment;

import java.io.File;

/**
 * Created with IntelliJ IDEA.
 * User: Vita Hao
 * Date: 13-6-1
 * Time: 下午10:57
 * To change this template use File | Settings | File Templates.
 */
public class AppConstants {

    public final static String SAVE_IMAGE_PATH = "save_image_path";

    @SuppressLint("NewApi")
    public final static String DEFAULT_SAVE_IMAGE_PATH = Environment.getExternalStorageDirectory()+ File.separator+"steeltalent"+ File.separator;

    /**
     * 
	"job" :	//(推荐)职位
	"company":	//热门企业
	"zph":		//招聘会
	"resume" :	//(高级人才)应聘简历
	"news" :		//行业资讯
	"cache" :	//缓存参数
	"hot_key":		//热门搜索关键字
     */
    private static final String HOST = "http://192.168.1.115:8080/";
    public static final String URL_MOBLIE_URL = HOST + "app/";
    public static final String RECOMMENDED_JOBS = URL_MOBLIE_URL + "?act=getinfo&type=job&rec=1";
    public static final String RECOMMENDED_JOBS_DETAILS = URL_MOBLIE_URL + "?act=getinfo&type=job&rec=1&id=";
    public static final String HOT_SEARCH = URL_MOBLIE_URL +"?act=getinfo&type=hot_key";
    public static final String JOB_OFFERS = URL_MOBLIE_URL + "?act=getinfo&type=job";
    public static final String JOB_OFFERS_DETAILS = URL_MOBLIE_URL + "?act=getinfo&type=job&id=";
    public static final String HOT_COMPANY = URL_MOBLIE_URL +"?act=getinfo&type=company";
    public static final String HOT_COMPANY_DETAILS = URL_MOBLIE_URL + "?act=getinfo&type=company&id=";
    public static final String JOB_FAIR = URL_MOBLIE_URL + "?act=getinfo&type=zph";
    public static final String JOB_FAIR_DETAILS = URL_MOBLIE_URL + "?act=getinfo&type=zph&id=";
    public static final String TALENTS = URL_MOBLIE_URL + "?act=getinfo&type=resume&rec=1";
    public static final String TALENTS_DETAILS = URL_MOBLIE_URL + "?act=getinfo&type=resume&rec=1&id=";
    public static final String JOB_RESUME = URL_MOBLIE_URL+"?act=getinfo&type=resume";
    public static final String JOB_RESUME_DETAILS = URL_MOBLIE_URL+"?act=getinfo&type=resume&id=";
    public static final String NEWS = URL_MOBLIE_URL+ "?act=getinfo&type=news";
    public static final String NEWS_DETAILS = URL_MOBLIE_URL + "?act=getinfo&type=news&id=";
    public static final String CATEGORY = URL_MOBLIE_URL+"?act=getinfo&type=cache&class=job";
    public static final String CATEGORY_DETAILS_EN = URL_MOBLIE_URL + "?act=getinfo&type=job&class=";
    public static final String CATEGORY_DETAILS_TA = URL_MOBLIE_URL + "?act=getinfo&type=resume&class=";
    public static final String JOB_SEARCH = URL_MOBLIE_URL + "?act=getinfo&type=job&keyword=";
    public static final String RESUME_SEARCH = URL_MOBLIE_URL + "?act=getinfo&type=resume&keyword=";
    public static final String CACHE = URL_MOBLIE_URL + "?act=getinfo&type=cache&class=all";
    public static final String LOGIN = URL_MOBLIE_URL+"index.php?act=login";



    //地区map的关键字
    public static final String AREA_JSON_KEY = "city_name";

    public static class MainHeaderBarStatus {
        public static final int NONE = 0;
        public static final int BACK_NOT_EXIT = 1;
        public static final int BACK_AND_EXIT = 2;

    }

    public static class MsgStatus{
        public static final int MSG_ERROR = -1;
        public static final int MSG_LOADING = 0;
        public static final int MSG_SUCCUSS = 1;


    }

}
